package com.liang.text3;

public class Dog extends Animal{
    private double height;

    public Dog() {
    }

    public Dog(String name, int age, double height) {
        super(name, age);
        this.height = height;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    @Override
    public void eat() {
        System.out.println("狗吃肉。。。");
    }
}
